﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="adminadd.aspx.cs" Inherits="UI.system.page.admin.adminadd" %>
<%@ Import Namespace="Model" %>
<%@ Import Namespace="DAL" %>
<style>.checkbox .layui-form-checkbox{margin-bottom:5px;}</style>
<div style="margin: 15px;">
	<form class="layui-form" style="padding-left:0px;">
        <div class="layui-form-item">
			<label class="layui-form-label"><font>用户名</font><em>*</em></label>
			<div class="layui-input-inline">
                <input type="text" name="username" placeholder="请输入用户名" lay-verify="required" class="layui-input" value="<%=info.UserName %>">
			</div>
		</div>
		<div class="layui-form-item">
			<label class="layui-form-label"><font>密码</font><em>*</em></label>
			<div class="layui-input-inline">
				<input type="text" name="userpwd" placeholder="请输入密码" lay-verify="required" class="layui-input" value="<%=info.UserPwd %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>真实姓名</font><em>*</em></label>
			<div class="layui-input-inline">
				<input type="text" name="realname" placeholder="请输入真实姓名" lay-verify="required" class="layui-input" value="<%=info.RealName %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>会员数量</font><em>*</em></label>
			<div class="layui-input-inline">
				<input type="text" name="usercount" placeholder="请输入会员数量" lay-verify="required" class="layui-input" value="<%=info.UserCount %>">
			</div>
		</div>
        <div class="layui-form-item">
			<label class="layui-form-label"><font>角色</font><em>*</em></label>
			<div class="layui-input-block">
                <%if(B.MyAdmin.Role==1){ %>
                <input type="radio" name="role"  value="1" title="系统管理员" <%=info.Role==1?"checked='checked'":"" %> />
                <input type="radio" name="role"  value="2" title="代理商" <%=info.Role==2?"checked='checked'":"" %> />
                <%}else{ %>
                <input type="radio" name="role"  value="2" title="代理商" <%=info.Role==2?"checked='checked'":"" %> />
                <%} %>
			</div>
	    </div>
        <!--
        <div class="layui-form-item">
			<label class="layui-form-label"><font>权限</font><em>*</em></label>
			<div class="layui-input-block checkbox" style="padding-top:10px;">
				<input type="checkbox" name="power" lay-skin="primary" title="会员管理" value="user" <%=info.Power.Contains("user")?"checked":"" %>>
                <input type="checkbox" name="power" lay-skin="primary" title="管理员管理" value="admin" <%=info.Power.Contains("admin")?"checked":"" %>>
                <input type="checkbox" name="power" lay-skin="primary" title="基本设置" value="config" <%=info.Power.Contains("config")?"checked":"" %>>
			</div>
		</div>
        -->
		<a lay-filter="save" lay-submit style="display: none;"></a>
	</form>
</div>